Tdata_hora data_hora_atual()
{
   Tdata_hora dt_hr;
   struct tm *data;
   time_t tempo;

         tempo = time(NULL);
         data = localtime(&tempo);
         sprintf(dt_hr.hora,"%d",data -> tm_hour);
		 sprintf(dt_hr.min,"%d",data -> tm_min);
		 sprintf(dt_hr.seg,"%d",data -> tm_sec);
		 sprintf(dt_hr.dia,"%d",data -> tm_mday);
		 sprintf(dt_hr.mes,"%d", data -> tm_mon+(1));
		 sprintf(dt_hr.ano,"%d",data -> tm_year+(1900));



return(dt_hr);
}
